package cn.bone.boot03.test;

import org.junit.Test;
import org.junit.runner.RunWith;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

/**
 * Created by superbone on 2018/9/27.
 */
@RunWith(SpringRunner.class)
@SpringBootTest
public class LoggingTest01 {

    Logger logger = LoggerFactory.getLogger(getClass());

    @Test
    public void test01(){
        logger.trace("trace,追踪...");
        logger.debug("debug,调试...");
        logger.info("info,记录...");
        logger.warn("warn,警告...");
        logger.error("error,错误...");
        System.out.println("log");
    }
}
